<%@page import="edu.mta.pokerstats.Player"%>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%
	Player currPlayer = (Player)session.getAttribute("viewingPlayer");
%>
<div id="DivPersonalInfo">
	<label>Name:</label><br/>
	<input type="text" id="UserNameProfile" value="<%=currPlayer.getName()%>" disabled="disabled"/><br/>
	<label>Password:</label><br/>
	<input type="password" id="UserPasswordProfile" value="<%=currPlayer.getPassword()%>" disabled="disabled"/>  <span id="SpanUserRePasswordProfile">RePassword:<input type="password" id="UserRePasswordProfile" value="<%=currPlayer.getPassword()%>"/></span><br/>
	<label>Birthday:</label><br/>
	<%= currPlayer.getBirthday() != null? currPlayer.getBirthday() : "Unknown"%>
	<input type="date" id="UserBirthdayProfile" value="<%= currPlayer.getBirthday()%>"/>
	<img id='UserBirthdayProfileInfo' class='inputInfo' src='res/img/info.png' title='Leave blank to hide birthday.' hidden='hidden'/><br/>
	<button onclick="EditProfile()" id="ButtonEditProfile">Edit Your Profile</button>
	<button onclick="ChangeProfileInfo('save')"id="ButtonSaveChangeInfoProfile" class="yellowButton largeBtn SaveOrChangeInfo">Save</button>
	<button onclick="ChangeProfileInfo('Cancel')" id="ButtonCancelChangeInfoProfile" class="yellowButton largeBtn SaveOrChangeInfo">Cancel</button>
	<div id="DivErrorInfo"></div>
</div>
